/**
 * 在主框架内显示
 */
const frameIn = [
    {
        path: '/StarCloud',
        name: 'StarCloud',
        meta:{
          auth:true,
            title:{
                'en-US':'home',
                'zh-CN':'首页'
            },
        },
        children: [
            // 刷新页面 必须保留
            {
                path: 'refresh',
                name: 'refresh',
                hidden: true,
                component: {
                    beforeRouteEnter (to, from, next) {
                        next(instance => instance.$router.replace(from.fullPath));
                    },
                    render: h => h()
                }
            },
            // 页面重定向 必须保留
            {
                path: 'redirect/:route*',
                name: 'redirect',
                hidden: true,
                component: {
                    beforeRouteEnter (to, from, next) {
                        next(instance => instance.$router.replace(JSON.parse(from.params.route)));
                    },
                    render: h => h()
                }
            }
        ]
    }
];
export default frameIn;